package com.sais.manage.boot.platform.dto;

import com.sais.manage.boot.platform.entity.Dict;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

/**
 * 宿舍管理系统-字典 添加DTO
 *
 * @author zhang
 * @date 2019/12/2
 **/
@Data
@NoArgsConstructor
public class DictSaveDTO {

    private String ukId;
    private String code;
    private String name;
    private Integer status;
    private Integer sort;

    public Dict convert() {
        Dict dict = new Dict();
        BeanUtils.copyProperties(this, dict);
        return dict;
    }
}
